import { Component } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { NzFormModule } from 'ng-zorro-antd/form';
import { NzSwitchModule } from 'ng-zorro-antd/switch';

@Component({
  selector: 'app-switch-label',
  standalone: true,
  imports: [NzSwitchModule, FormsModule, NzFormModule],
  template: `
    <div class="demo">
      <form nz-form>
        <nz-form-item>
          <nz-form-label>踢足球</nz-form-label>
          <nz-form-control>
            <nz-switch [(ngModel)]="value"></nz-switch>
          </nz-form-control>
        </nz-form-item>
      </form>
    </div>
  `,
})
export class SwitchLabelComponent {
  value = false;
}
